﻿
<?php
	/*查询所有的学生表格 徐业辉认为没有使用到  怀疑是否与adminselectAll.php 重复*/
 	('Access-Control-Allow-Origin：*');
	include("mysql.php");
	 $userid=$_REQUEST['userid'];
    $searchName = $_REQUEST['searchName'];
    $searchCardid = $_REQUEST['searchCardid'];
    $condition=$_REQUEST['condition'];
	/*查询语句*/
   $sql = "select * from students where tid = '{$userid}' and name like '%{$searchName}%' and cardid like '%{$searchCardid}%' and educationType like '%{$condition}%' order by id desc";
    /*创建新的连接对象并使用new 对象的方法*/
    $Mysql = new Mysql();
    /*查询表格参数一表明   参数二 查询语句*/
	$arrsd = $Mysql->likeSelect($sql);
	/*返回出去*/
	echo $arrsd;
	/*关闭连接*/
    $Mysql->close();

?>